<?php
class Alert extends Doctrine_Record
{
    public function setTableDefinition()
    {
        $this->hasColumn('company_gear_id', 'integer', 20);
        $this->hasColumn('alert_time', 'string', 255);
        $this->hasColumn('error', 'string', 255);
    }
    public function setUp()
    {
        $this->actAs('Timestampable');
        $this->hasOne('Company_gear', array(
                'local' => 'company_gear_id',
                'foreign' => 'id',
            'onDelete' => 'CASCADE'
            )
        ); 
    }

}


